#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable : 4996)
#pragma warning(disable : 6031)

#include "Heap.h"

int main()
{
	Heap Hp;
	int arr[] = { 3,2,9,7,6,1,8,5,4,0 };
	HeapCreate(&Hp , arr , sizeof(arr)/sizeof(int));
	printf("HeapTop:%d\n", HeapTop(&Hp));
	HeapPush(&Hp, 15);
	while (!HeapEmpty(&Hp))
	{
		printf("HeapTop:%d\n", HeapTop(&Hp));
		printf("HeapSize:%d\n", HeapSize(&Hp));
		HeapPop(&Hp);
	}
	return 0;
}